
 /**
 * IUserDao.java.java.
 * User: BrianChen Date: 2012-6-5 下午03:54:49
 *
 * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
 * All rights reserved.
 */
package com.collapsar.core.security.dao;

import com.collapsar.core.orm.page.Page;
import com.collapsar.core.security.model.User;

/**
 * <pre>
 * REVISIONS: 
 * Version 	Date 		Author 			Description
 * ------------------------------------------------------------------- 
 * 1.0 		2012-6-5 	BrianChen 	1. Created this class. 
 * </pre>
 * 
 * @author BrianChen
 * @date 2012-6-5 下午03:54:49
 * @version 1.0
 * @see
 * 
 */
public interface IUserDao {
	public abstract void storeUser(User user);
	
	public abstract void deleteUser(User user);
	public abstract void deleteAllUsers(Long userIds[]);
	
	User getUser(Long userId);
	User loadUser(Long userId);
//	public abstract User loadUserWithGroupsAndRoles(Long userId);
	/**
	 * 
	 * @param offset
	 * @param pageSize
	 * @return
	 */
	Page<User> findAllUsers(int offset, int pageSize);
	public abstract User getUserByAccount(String userAccount);
//	public abstract User getUserByName(String userName);
	
}

